<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
a {
    height: 21px;
    line-height: 21px;
    padding: 0 11px;
    background: #ffffff;
    border: 1px #000000 solid;
    border-radius: 3px;
    /*color: #fff;*/
    display: inline-block;
    text-decoration: none;
    font-size: 12px;
    outline: none;
    color:black;
}
</style>
</head>
<body>
&nbsp;<a href="#" id="openGoodOrder">商品订单</a>&nbsp;&nbsp;&nbsp;
<a href="#" id="openServcieOrder">服务订单</a>
<br />
<br />
&nbsp;<a id="openUserInfo">个人信息</a>&nbsp;&nbsp;&nbsp;
<a id="openServiceLog">客服日志</a>
<br />
<br />
</body>
<script type="text/javascript">
function getUrlParam(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
var basePath = "http://sys.boyibang.com/";
var topWin= (function (p,c){
    while(p!=c){
        c = p       
        p = p.parent
    }
    return c
})(window.parent,window);

function openWin(url){
	topWin.open(url, "_blank");
}
var userId = 0;
window.onload=function(){
	userId = getUrlParam("userId");
	var url = basePath+"Shop/orderEdit/id/"+userId+"/goods_type/1";
	document.getElementById("openGoodOrder").setAttribute("href",url);
	
	url = basePath+"Doctor/commentList/patient_id/"+userId;
	document.getElementById("openServcieOrder").setAttribute("href",url);
	
	url = basePath+"/Patient/patientDetail/id/"+userId;
	document.getElementById("openUserInfo").setAttribute("href",url);
	
	url = basePath+"Patient/patientLogList/user_id/"+userId+"/add/1/resource_from/2";
	document.getElementById("openServiceLog").setAttribute("href",url);
}
</script>
</html>